<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../css/public.css" media="all">

    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form" lay-filter="maprules">
    <div class="layui-form-item">
        <label class="layui-form-label ">选择文件</label>
        <div class="layui-input-block">
            <input type="file" id="import-file" name="excelfile" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label ">选择Sheet</label>
        <div class="layui-input-block">
			<select lay-filter="sheetNames" id="sheetNames" name="excelsheet">
			</select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label ">所属经销商</label>
        <div class="layui-input-block">
            <!-- <input type="text" name="dealer"  lay-verify="required" lay-reqtext="所属经销商不能为空" placeholder="请输入经销商" value="" class="layui-input"> -->
            <select lay-filter="import" id="dealer_id" name="dealer_id" >
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label ">数据映射</label>
        <div class="layui-input-block">
            <table class="layui-table" lay-size="lg">
                <thead>
                    <tr>
                        <th>系统字段</th>
                        <th>导入列</th>
                    </tr>
                </thead>
                <tbody  id="mapping_member">
                    <tr>
                        <td>货品id</td>
                        <td>
                            <div class="layui-form-item" lay-filter="maprules">
                                <div class="layui-input-block">
                                    <select id="goods_id" name="goods_id" class="import">
                                    </select>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>货品名称</td>
                        <td>
                            <div class="layui-form-item" lay-filter="maprules">
                                <div class="layui-input-block">
                                    <select id="goods" name="goods" class="import">
                                    </select>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>规格名称</td>
                        <td>
                            <div class="layui-form-item" lay-filter="maprules">
                                <div class="layui-input-block">
                                    <select id="goods_sku" name="goods_sku" class="import">
                                    </select>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>商家编码</td>
                        <td>
                            <div class="layui-form-item" lay-filter="maprules">
                                <div class="layui-input-block">
                                    <select id="goods_code" name="goods_code" class="import">
                                    </select>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>发货仓库</td>
                        <td>
                            <div class="layui-form-item" lay-filter="maprules">
                                <div class="layui-input-block">
                                    <select id="ware_house" name="ware_house" class="import">
                                    </select>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>供货价</td>
                        <td>
                            <div class="layui-form-item" lay-filter="maprules">
                                <div class="layui-input-block">
                                    <select id="supply_price" name="supply_price" class="import">
                                    </select>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>定价</td>
                        <td>
                            <div class="layui-form-item" lay-filter="maprules">
                                <div class="layui-input-block">
                                    <select id="fixed_price" name="fixed_price" class="import">
                                    </select>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>备注</td>
                        <td>
                            <div class="layui-form-item" lay-filter="maprules">
                                <div class="layui-input-block">
                                    <select id="remark" name="remark" class="import">
                                    </select>
                                </div>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认</button>
            <!-- <input class="layui-btn layui-btn-normal" type="button" value="取消" onclick=""/> -->
        </div>
    </div>
</div>
<script src="../../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="../../js/xlsx.core.min.js" charset="utf-8"></script>
<script src="../../js/Goods-import.js" charset="utf-8"></script>

</body>
</html>